home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 1.8 KB | 76 lines | [TEXT/CWIE] |
- // DReminder -- data class for AMReminder
-
- #pragma once
-
- #include "AMDataDef.h"
-
- class LFileStream;
-
-
- const long idDateTime = 'Date';
- const long idMessage = 'Mese';
- const long idShowAlert = 'Shot';
- const long idShowIcon = 'Shon';
- const long idPlaySound = 'Plad';
- const long idSoundIndex = 'Soux';
- const long idDateString = 'Datg';
- const long idTimeString = 'Timg';
- const long idYearMonthDay = 'Yeay';
- const long idHourMinute = 'Houe';
-
-
- //----------
- class DReminder : public AMDataDef {
- public:
- DReminder ();
- virtual ~DReminder ();
-
- public:
- void CopyFrom (DReminder* inOther);
- void ReadFromFile (LFileStream* inFile);
- void WriteToFile (LFileStream* inFile);
-
- public: // accessors
- LongDateRec GetDateTime () const;
- void SetDateTime (LongDateRec inValue);
-
- StringPtr GetMessage (Str255 outStr = nil) const;
- void SetMessage (ConstStringPtr inValue);
- void SetMessage (CharsHandle inValue);
-
- Boolean GetShowAlert () const;
- void SetShowAlert (Boolean inValue);
-
- Boolean GetShowIcon () const;
- void SetShowIcon (Boolean inValue);
-
- Boolean GetPlaySound () const;
- void SetPlaySound (Boolean inValue);
-
- SInt16 GetSoundIndex () const;
- void SetSoundIndex (SInt16 inValue);
-
- StringPtr GetDateString (Str255 outStr = nil) const;
- void SetDateString (ConstStringPtr inValue);
- void SetDateString (CharsHandle inValue);
-
- StringPtr GetTimeString (Str255 outStr = nil) const;
- void SetTimeString (ConstStringPtr inValue);
- void SetTimeString (CharsHandle inValue);
-
- LongDateRec GetYearMonthDay () const;
- void SetYearMonthDay (LongDateRec inValue);
-
- LongDateRec GetHourMinute () const;
- void SetHourMinute (LongDateRec inValue);
-
-
- protected:
- LongDateRec mDateTime;
- Str255 mMessage;
- Boolean mShowAlert;
- Boolean mShowIcon;
- Boolean mPlaySound;
- SInt16 mSoundIndex;
- };
-